
SET COPY_OPTS=/y

SET DEST_MATHML=%1\MathML

mkdir "%DEST_MATHML%"
mkdir "%DEST_MATHML%\config"
mkdir "%DEST_MATHML%\extensions"
mkdir "%DEST_MATHML%\extensions\TeX"
mkdir "%DEST_MATHML%\jax\input\TeX"
mkdir "%DEST_MATHML%\jax\output\HTML-CSS"

rem TeX-AMS-MML_HTMLorMML
rem MathJax.Hub.Config({
rem   config: ["MMLorHTML.js"],
rem   jax: ["input/TeX","input/MathML","output/HTML-CSS","output/NativeMML"],
rem   extensions: ["tex2jax.js","mml2jax.js","MathMenu.js","MathZoom.js"],
rem   TeX: {
rem     extensions: ["AMSmath.js","AMSsymbols.js","noErrors.js","noUndefined.js"]
rem   }
rem });

xcopy %COPY_OPTS% MathML\mathjax.js "%DEST_MATHML%"

xcopy %COPY_OPTS% MathML\config\*.js "%DEST_MATHML%\config"

xcopy %COPY_OPTS% MathML\extensions\*.js "%DEST_MATHML%\extensions"
xcopy %COPY_OPTS% MathML\extensions\mml2jax.js "%DEST_MATHML%\extensions"
xcopy %COPY_OPTS% MathML\extensions\MathMenu.js "%DEST_MATHML%\extensions"
xcopy %COPY_OPTS% MathML\extensions\MathZoom.js "%DEST_MATHML%\extensions"
xcopy %COPY_OPTS% MathML\extensions\TeX\AMSmath.js "%DEST_MATHML%\extensions\TeX"
xcopy %COPY_OPTS% MathML\extensions\TeX\AMSsymbols.js "%DEST_MATHML%\extensions\TeX"
xcopy %COPY_OPTS% MathML\extensions\TeX\noErrors.js "%DEST_MATHML%\extensions\TeX"
xcopy %COPY_OPTS% MathML\extensions\TeX\noUndefined.js "%DEST_MATHML%\extensions\TeX"

xcopy %COPY_OPTS% MathML\jax\input\TeX\config.js "%DEST_MATHML%\jax\input\TeX"
xcopy %COPY_OPTS% MathML\jax\output\HTML-CSS\config.js "%DEST_MATHML%\jax\output\HTML-CSS"
